Add Debian packaging support for wolfPKCS11 #111
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add Debian packaging support for wolfPKCS11
Summary
This PR adds comprehensive Debian packaging support for wolfPKCS11, enabling the creation of
.debpackages for easy installation and distribution. The implementation creates two packages (libwolfpkcs11andlibwolfpkcs11-dev).Key additions:
debian/directory with control files, changelog, and copyrightmake deb(local)--enable-aescfb --enable-cryptocb --enable-rsapss --enable-keygen --enable-pwdbased --enable-scrypt C_EXTRA_FLAGS="-DWOLFSSL_PUBLIC_MP -DWC_RSA_DIRECT") to resolve linking issues with single precision math functions.Review & Testing Checklist for Human
make debto verify .deb packages are created successfullydebian-package-test.ymlworkflow runs successfully in CImake,make check, and other existing build processes still workRecommended Test Plan:
make deband verify two .deb packages are createdsudo dpkg -i *.deband test functionalityDiagram
%%{ init : { "theme" : "default" }}%% graph TB subgraph "wolfPKCS11 Repository" MA["Makefile.am"]:::major-edit subgraph "debian/" DC["control.in"]:::major-edit DCO["control"]:::major-edit DI["include.am"]:::major-edit DCL["changelog"]:::major-edit DCR["copyright"]:::major-edit end subgraph "Docker/" DIN["include.am"]:::major-edit DF["packaging/debian/<br/>Dockerfile"]:::major-edit end subgraph ".github/workflows/" GHA["debian-package-test.yml"]:::major-edit end end subgraph "External Dependencies" WS["wolfSSL library<br/>(specific build flags required)"]:::context end subgraph "Build Targets" DB["make deb"]:::major-edit DDB["make deb-docker"]:::major-edit end MA --> DI MA --> DIN DI --> DB DI --> DDB DF --> DDB DC --> DB WS --> DB GHA --> DB GHA --> DDB subgraph Legend L1["Major Edit"]:::major-edit L2["Minor Edit"]:::minor-edit L3["Context/No Edit"]:::context end classDef major-edit fill:#90EE90 classDef minor-edit fill:#87CEEB classDef context fill:#F5F5F5Notes
Link to Devin run: https://app.devin.ai/sessions/d206417ddb084b8b8270c94e0806c312
Requested by: [email protected]